package com.qf.ks.mapper;

import com.qf.ks.pojo.Authors;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;

public interface AuthorsMapper {
//    @Insert("insert into authors(authorname, authordescription) VALUES (#{authorname},#{authordescription});")
    void AddAuthors(Authors authors);
    @Select("SELECT * FROM authors WHERE authorname=#{name};")
    Authors selectAuthorsByName(String name);
    @Select("select authorid,authorname from authors where authorid=#{authorid}")
    Authors selectAuthorsById(long authorid);
}
